package hu.vissy.notification;

public class Notification {

    public enum Level {
        _MIN(0),
        DEBUG(10),
        INFO(30),
        WARNING(50),
        ERROR(70),
        FATAL(90),
        _MAX(99);

        int weight;

        private Level(int weight) {
            this.weight = weight;
        }

        public int getWeight() {
            return weight;
        }
    }

    private Level level;
    private String message;
    private Object context;

    public Notification(Level level, String message, Object context) {
        super();
        this.level = level;
        this.message = message;
        this.context = context;
    }

    public Notification(Level level, String message) {
        this(level, message, null);
    }

    public Level getLevel() {
        return level;
    }

    public String getMessage() {
        return message;
    }

    public Object getContext() {
        return context;
    }

}
